import request from '@/plugins/request';

// 登录
export function AccountLogin (data) {
    return request({
        url: '/qhApi/login',
        method: 'post',
        data
    });
}

// 登出
export function AccountLogout(data) {
    return request({
        url: '/qhApi/logout',
        method: 'post',
        // data
    });
}

// 注册
export function AccountRegister (data) {
    return request({
        url: '/qhApi/register',
        method: 'post',
        data
    });
}

// 图片验证码
export function AccountCaptchaPicture (data) {
    return request({
        url: '/captcha/picture',
        method: 'get',
    });
}

// 短信验证码
export function AccountRegisterCaptcha (data) {
    return request({
        url: '/captcha/registerSms',
        method: 'post',
        data
    });
}
